{extend name="wap/default/base" /}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/components.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/{$style}/public/css/group_goods_list.css">
<style>
body{background: #eee;}
.custom-search-button{top:6px;}
.category{width:95%;margin:10px auto;display: none;}
.category img{display: inline-block;width: 100%;}
.nothing-data{margin-top:50%;}
.custom-tag-list-goods dl{width:100%;}
.custom-tag-list-goods dt a {padding:0 10px;}
.custom-tag-list{height:92%;}
.custom-search{width:90%;margin-left:20px;}
.custom-search .custom-search-input{width:97%;}
.custom-search-button{top:6px;}
/* .category img{
	display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: auto;
} */
/* .custom-tag-list,.custom-tag-list .custom-tag-list-menu-block,.custom-tag-list .custom-tag-list-goods{height:initial;}
 body{ 
	height:initial;
} */ 
</style>
{/block}
{block name="goodsHead"}
<section class="head">
	<a class="head_back" id="head_back" href="{:__URL('APP_MAIN')}"><i class="icon-back"></i></a>
	<div class="head-title">{include file='wap/default/Index/controlSearch'/}</div>
</section>
{/block}

{block name="main"}
<div class="goodsCategoryList">
	<div class="all_goods">
		<a href="{:__URL('APP_MAIN/goods/goodslist')}">全部商品</a>
	</div>
	{foreach name="goods_category_list" item="vo"}
	<div class="one_level_category">
		<span>{$vo.category_name}</span>
		<div class="data-line"></div>
	</div>
	<div class="two-level_category">
		<ul>
			<li><a href="{:__URL('APP_MAIN/goods/goodslist','category_id='.$vo['category_id'])}">全部</a></li>
			{notempty name="$vo['child_list']"}
				{foreach name="$vo['child_list']" item="to"}
					<li><a href="{:__URL('APP_MAIN/goods/goodslist','category_id='.$to['category_id'])}">{$to.category_name}</a></li>
				{/foreach}
			{/notempty}
			{for start="0" end="$vo['num']"}
				<li><a href="javascript:;">&nbsp;</a></li>
			{/for}
		</ul>
		<div style="clear: both;"></div>
	</div>
	<div style="clear: both;"></div>
	{/foreach}
</div>
<script>
$(function(){
	buttomActive('#buttom_classify');
});
</script>
{/block}